'''
Created on Aug 22, 2012

@author: petrina
'''

class Data_exception(Exception):
    """ this Exception is usually raised if invalid data is given to an object for handling data"""

    def __init__(self, value = ""):
        self.value = value

    def __str__(self):
        return repr(self.value)    


class Linkset_exception(Data_exception):
    """ this Exception is usually raised if invalid data is given to a Linkset-object"""

    def __init__(self, value = ""):
        self.value = value   


class Link_exception(Data_exception):
    """ this Exception is usually raised if invalid data is given to a Link-object"""

    def __init__(self, value = ""):
        self.value = value
    
    
class Record_exception(Data_exception):
    """ this Exception is usually raised if invalid data is given to a Record-object"""

    def __init__(self, value = ""):
        self.value = value 